package com.example.sprintboot.entity;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum ProductStatus implements IEnum<Integer> {
    PENDING(2),   //待审核
    ON_SALE(1),   //上架中
    OFF_SHELF(0), //下架
    REJECTED(3);  //拒绝

    private final int code;
    ProductStatus(int code) { this.code = code; }
    @Override
    public Integer getValue() { return code; }
}
